/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package UI;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author XchoryX
 */
public class Hilo_Inicio implements Runnable{
    Thread hilo;
    public void inicio(){
        hilo = new Thread(this);
        hilo.start();
    }
    public Hilo_Inicio(){
        inicio();
    }
   @Override
    public void run() {
        try {
            start t = new start();
            t.setVisible(true);
            Thread.sleep(5000);
            t.dispose();
            Login yt = new Login();
            yt.setVisible(true);
        } catch (InterruptedException ex) {
            Logger.getLogger(Hilo_Inicio.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
